package ca.quicko.webapp.action;

import java.util.List;

import org.appfuse.service.GenericManager;
import org.appfuse.webapp.action.BaseAction;

import ca.quicko.model.Act;

/**
 * @author <a href="mailto:eric.s.landry@gmail.com">Eric S. Landry</a>
 */
public class ActAction extends BaseAction {
	private static final long serialVersionUID = 2140366669014479190L;
	private GenericManager<Act, Long> actManager; 
    private List acts; 
 
    public void setIssueManager(GenericManager<Act, Long> actManager) { 
        this.actManager = actManager; 
    }
    
    public Act getAct(Long id) {
    	return actManager.get(id);
    }
 
    public List getActs() { 
        return acts; 
    } 
 
    public String list() { 
        acts = actManager.getAll(); 
        return SUCCESS; 
    } 
}
